
package server.console.groups.setting;



import kotlin.Metadata;
import kotlin.TypeCastException;
import kotlin.jvm.internal.Intrinsics;

import java.nio.charset.Charset;














































































































































































































































































































































@Metadata(mv = {1, 1, 16}, bv = {1, 0, 3}, k = 2, d1 = {"\000\020\n\000\n\002\020\016\n\002\b\002\n\002\020\b\n\000\032\030\020\000\032\0020\0012\006\020\002\032\0020\0012\006\020\003\032\0020\004H\002¨\006\005"}, d2 = {"subString", "", "value", "max", "", "Server"})
 public final class CubeConfigGroupKt
         {

    public static final String subString(String value, int max) {
        /* 339 */
        String string = value;

        try {
            /* 341 */
            String str1 = string, str2 = "gb2312";
            Intrinsics.checkExpressionValueIsNotNull(Charset.forName(str2), "Charset.forName(charsetName)");
            Charset charset = Charset.forName(str2);
            if (str1 == null) throw new TypeCastException("null cannot be cast to non-null type java.lang.String");
            Intrinsics.checkExpressionValueIsNotNull(str1.getBytes(charset), "(this as java.lang.String).getBytes(charset)");
            for (int i = (str1.getBytes(charset)).length, j = max; i < j; i++) {
                /* 342 */
                string = string + " ";

            }
            /* 344 */
        } catch (Exception e) {
            /* 345 */
            e.printStackTrace();

        }

        /* 348 */
        return string;

    }

}


/* Location:              C:\PGX\Server.jar!\server\console\groups\setting\CubeConfigGroupKt.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */